KERNELDIR := /home/raii/KzLab/v3s/linux-zero-5.2.y
CURRENTPATH := $(shell pwd)
obj-m := v3sKoLed.o
ARCH := arm
CROSS_COMPILE := arm-none-linux-gnueabi-
OUTPUT_PATH={$PWD}/build
CFLAGS=-std=c99

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENTPATH) modules
	rm -rf .*.cmd *.o *.mod.c  .tmp_versions *.mod *.symvers *.order
	mv v3sKoLed.ko ./build/v3sKoLed.ko

clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENTPATH) clean